const mongoose = require("mongoose")
const Schema = mongoose.Schema
// user模型===>users集合

const NewsType = {
  title: String,
  content: String,
  category: Number, //1 最新动态, 2典型案例 3 通知公告
  cover: String, //封面
  editTime: Date,
  isPublish: Number // 0 未发布, 1 已发布
}
const NewsModel = mongoose.model("news", new Schema(NewsType))

module.exports = NewsModel